package com.four.service.impl;

import com.four.dao.MakeMapper;
import com.four.pojo.Make;
import com.four.service.IMakeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("makeServiceImpl")
public class MakeServiceImpl implements IMakeService {
    @Autowired
    @Qualifier("makeMapper")
    private MakeMapper makeMapper;

    @Override
    public int deleteByPrimaryKey(Integer mid) {
        return makeMapper.deleteByPrimaryKey(mid);
    }

    @Override
    public int insert(Make record) {
        return makeMapper.insert(record);
    }

    @Override
    public int insertSelective(Make record) {
        return makeMapper.insertSelective(record);
    }

    @Override
    public Make selectByPrimaryKey(Integer mid) {
        return makeMapper.selectByPrimaryKey(mid);
    }

    @Override
    public int updateByPrimaryKeySelective(Make record) {
        return makeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Make record) {
        return makeMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Make> findAll() {
        return makeMapper.findAll();
    }

    @Override
    public List<Make> makeFindAllBy(Make make) {
        return makeMapper.makeFindAllBy(make);
    }

    @Override
    public List<Make> findAllMake() {
        return makeMapper.findAllMake();
    }
}
